package com.glink.manage.dto.log;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.glink.common.serializer.JsonDate3DeSerializer;
import com.glink.common.serializer.JsonDate3Serializer;
import com.glink.common.vo.PageVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : qiushaoshan
 * @create 2024/6/24 11:17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LogPageDTO extends PageVO {

    @ApiModelProperty(value = "type", notes = "日志类型（字典LogType：01：系统、02：权限、03：任务、04：装置……）")
    private String type;

    @ApiModelProperty(value = "createUserName", notes = "操作人名称")
    private String createUserName;

    @ApiModelProperty(value = "createUserId", notes = "操作人ID")
    private String createUserId;

    @ApiModelProperty(value = "content", notes = "操作内容")
    private String content;

    @ApiModelProperty(value = "startTime", notes = "开始时间（yyyy-MM-dd HH:mm:ss）")
    @JsonSerialize(using = JsonDate3Serializer.class)
    @JsonDeserialize(using = JsonDate3DeSerializer.class)
    private Date startTime;

    @ApiModelProperty(value = "endTime", notes = "结束时间（yyyy-MM-dd HH:mm:ss）")
    @JsonSerialize(using = JsonDate3Serializer.class)
    @JsonDeserialize(using = JsonDate3DeSerializer.class)
    private Date endTime;
}
